package com.yuwei.module_vehicles.api

import com.bw.lib_common.api.BaseApiServer
import com.bw.lib_common.entity.Res
import com.bw.lib_http.entity.*
import retrofit2.http.*

interface VehiclesService:BaseApiServer {
    //车辆列表
    @GET("/api/parking-payments")
    suspend fun getCarPayments(): Res<CarPaymentsEntity>
    //省份简码
    @GET("/api/vehicles/getProvinces}")
    suspend fun getProvinces():Res<ProvincesEntity>
    //添加车辆
    @POST("/api/vehicles")
    suspend fun getVehicles(@Body vehiclesBody: VehiclesBody):Res<VehiclesEntity>
    //删除车辆
    @DELETE("/api/parking-payments/{id}")
    suspend fun getDeleteCar(@Path("id")id:Int):Res<String>
    //添加车辆缴费
    @POST("/api/parking-payments")
    suspend fun getAddPayments(@Body addPaymentsBody: AddPaymentsBody):Res<AddPaymentsEntity>
}